import { request } from '@/common/service/service.js'
import configService from '@/common/service/config.service.js'
//initData 通用请求
export const initData = async(url,data,method)=>{
	const res = await request(url,data,method)
	return res.data
}
export const initData2 = async(url,data,method)=>{
	const res = await request(url,data,method)
	return res
}
export const uploadMedia =configService.apiUrl+'/files/upload'
/*统计*/ 
//宠物健康统计
export const petJiankangApi = async ()=>{
	const res = await request('/chongwuxinxi/chongwuxinxi_tj_jiankangzhuangtai',{},'get')
	return res.data
}

//医生值班统计
export const zhibanTongjiApi = async ()=>{
	const res = await request('/yishengxinxi/yishengxinxi_tj_zhibanzhuangtai',{},'get')
	return res.data
}
//药物统计
export const yaowuTongjiApi = async ()=>{
	const res = await request('/zhiliaojilu/zhiliaojilu_tj_yaowu',{},'get')
	return res.data
}
/*统计 end*/ 